﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using Blog.Core.Model.Models;
using Blog.Core.Model.ViewModels;

namespace Blog.Core.Model.Mappers.Profiles
{
    public class AdvertisementMapperProfile : Profile
    {
        public AdvertisementMapperProfile()
        {
            CreateMap<Advertisement, AdvertisementViewModel>(MemberList.Destination)
                .ReverseMap();
            CreateMap<List<Advertisement>, List<AdvertisementViewModel>>(MemberList.Destination)
                .ReverseMap();
        }
    }
}
